//
//  SonModel.m
//  PerfectWorld
//
//  Created by dllo on 16/9/3.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "SonModel.h"
#import "SonUser.h"
#import "TaskEnd.h"

@implementation SonModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"user"]) {
        _user = [SonUser modelWithDic:value];
    }
    if ([key isEqualToString:@"taskEnd"]) {
        _taskEnd = [TaskEnd modelWithDic:value];
    }
//    if ([key isEqualToString:@"taskRun"]) {
//        _taskRun = [TaskRun modelWithDic:value];
//    }
//    if ([key isEqualToString:@"taskAgo"]) {
//        _taskAgo = [TaskAgo modelWithDic:value];
//    }
    
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"description"]) {
        _Son_description = value;
    } else if ([key isEqualToString:@"id"]) {
        _Son_id = value;
    }
}

@end

